package puzzle;

import aima.core.search.framework.HeuristicFunction;

public class PuzzleManhattanPlusSpecialCasesHeuristicFunction implements
        HeuristicFunction {

    @Override
    public double h(Object state) {
        PuzzleBoard board = (PuzzleBoard) state;
        return ((double) board.getManhattanValue()) / 4
                + (double) board.getCasesValue();
    }

}

